package com.backend.system.beans.menu;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 角色分配菜单请求体
 *
 * @author backend-manage
 */
@ApiModel
@Data
public class RoleGrantMenusReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 1298761826752222184L;

    /**
     * 角色ID列表
     */
    @NotEmpty(message = "角色ID列表不能为空")
    @ApiModelProperty(value = "角色ID列表", required = true)
    private List<Long> roleIds;

    /**
     * 菜单ID
     */
    @NotEmpty(message = "菜单ID不能为空")
    @ApiModelProperty(value = "菜单ID", required = true)
    private Long menuId;
}
